﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:wpf="clr-namespace:ViewOnCore.Helper.WPF;assembly=ViewOnCore"
    xmlns:globalProperties="clr-namespace:ViewOnCore.Properties;assembly=ViewOnCore"
    xmlns:properties="clr-namespace:MusicPlayerAddIn.Properties"
    x:Class="UI.Control.BurnDialog"
    Height="350"
    Width="400"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2006"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
	<wpf:ChildWindowDecorator x:Name="childWindowDecorator">

		<Border BorderThickness="0" BorderBrush="#F0444444" CornerRadius="4" Margin="1,1,1,1">
			<Grid>

				<Grid.RowDefinitions>
					<RowDefinition Height="10" />
					<RowDefinition Height="*" />
					<RowDefinition Height="38" />
					<RowDefinition Height="10" />
				</Grid.RowDefinitions>

				<Border Grid.Row="1" Background="{DynamicResource VOColor12}" CornerRadius="1">
					<StackPanel>
						<RadioButton x:Name="rbAudio"  GroupName="BurnType" IsChecked="True" Margin="10,5,0,0" Foreground="{DynamicResource VOColor1A}" Content="{x:Static properties:Globalization.BurnDialog_BurnAudioCD}"/>
						<RadioButton x:Name="rbData" GroupName="BurnType" Margin="10,5,0,0" Foreground="{DynamicResource VOColor1A}" Content="{x:Static properties:Globalization.BurnDialog_BurnDataCD}"/>
						<StackPanel Orientation="Horizontal" Margin="10,5,5,5">
							<TextBlock Width="120" Text="{x:Static properties:Globalization.BurnDialog_Drives}" Foreground="{DynamicResource VOColor15}" VerticalAlignment="Center"/>
							<ComboBox x:Name="cboDrives" VerticalAlignment="Center"/>
						</StackPanel>
						<StackPanel Orientation="Horizontal" Margin="10,5,5,5">
							<TextBlock Width="120" Text="{x:Static properties:Globalization.BurnDialog_DriveSpeeds}" Foreground="{DynamicResource VOColor15}" VerticalAlignment="Center"/>
							<ComboBox x:Name="cboDriveSpeeds" VerticalAlignment="Center"/>
						</StackPanel>
						<CheckBox x:Name="chkVerify" Content="{x:Static properties:Globalization.BurnDialog_VerifyData}" Visibility="Collapsed" IsChecked="True" Margin="10,5,0,0" Foreground="{DynamicResource VOColor1A}"/>
						<Border Width="350" Height="Auto" Background="{DynamicResource VOColor11}" CornerRadius="1" Margin="0,15,0,15">
							<StackPanel Width="Auto" Height="Auto" Margin="5,5,5,5">
								<wpf:Spinner x:Name="spinner"/>
								<TextBlock x:Name="txtStatus"  Text="{x:Static properties:Globalization.BurnDialog_Burning}" Foreground="{DynamicResource VOColor1A}" FontWeight="Bold" FontSize="12" Visibility="Hidden" Height="14.4833333333333" HorizontalAlignment="Center"/>
								<TextBlock x:Name="txtProgress"  Text="" Foreground="{DynamicResource VOColor1A}" FontWeight="Bold" FontSize="12" Visibility="Hidden" Height="14.4833333333333" HorizontalAlignment="Center"/>
								<TextBlock x:Name="txtErrorMessage" Text="" TextWrapping="Wrap" Foreground="Red" FontWeight="Bold" FontSize="12" Height="14.4833333333333" HorizontalAlignment="Center" />
							</StackPanel>
						</Border>
						<StackPanel Width="Auto" Height="Auto">
							<ProgressBar x:Name="prgSize" Width="350" Height="15"/>
							<DockPanel Width="350" Height="Auto" LastChildFill="False" VerticalAlignment="Top">
								<TextBlock Text="0" TextWrapping="Wrap" Foreground="{DynamicResource VOColor1A}" x:Name="txtMinSize" Margin="10,0,0,0"/>
								<TextBlock Text="/" TextWrapping="Wrap" DockPanel.Dock="Right" HorizontalAlignment="Right" Foreground="{DynamicResource VOColor1A}" x:Name="txtMaxSize" Margin="0,0,10,0"/>
							</DockPanel>
							<TextBlock Text="/" TextWrapping="Wrap" Foreground="{DynamicResource VOColor1A}" x:Name="txtSize" Margin="10,0,0,0" HorizontalAlignment="Center"/>
						</StackPanel>
					</StackPanel>
				</Border>

				<Button Style="{StaticResource Button.TransparentWithEffect}" Grid.Column="0" Grid.Row="2" Width="80" HorizontalAlignment="Left" Margin="110,0,0,0" VerticalAlignment="Bottom" Click="btnExit_Click" Height="34" x:Name="btnExit">
					<TextBlock Text="{x:Static globalProperties:Globalization.Exit}" Foreground="{DynamicResource VOColor1A}" Margin="5,5,5,5"/>
				</Button>
				<Button Style="{StaticResource Button.TransparentWithEffect}" Grid.Column="0" Grid.Row="2" Width="80" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Bottom" Click="btnBurn_Click" Height="34" x:Name="btnBurn">
					<StackPanel Orientation="Horizontal">
						<TextBlock Text="{x:Static properties:Globalization.BurnDialog_Burn}" Margin="5,5,5,5" VerticalAlignment="Center"/>
						<Image Source="/_images/Burn/burn.png" Width="32" Height="32"/>
					</StackPanel>
				</Button>

				<Button Style="{StaticResource Button.TransparentWithEffect}" Grid.Column="0" Grid.Row="2" Width="80" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Bottom" Click="btnCancel_Click" Height="34" x:Name="btnCancel" Visibility="Collapsed">
					<StackPanel Orientation="Horizontal">
						<TextBlock Text="{x:Static globalProperties:Globalization.Cancel}" Margin="5,5,5,5" VerticalAlignment="Center"/>
						<Image Source="/_images/Burn/cancel.png" Width="32" Height="32"/>
					</StackPanel>
				</Button>

			</Grid>
		</Border>

	</wpf:ChildWindowDecorator>
</UserControl>
